package mainSystem;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public abstract class GameWindowKeyHandler implements KeyListener {

	private GameWindow owner;
	
	public GameWindowKeyHandler(GameWindow o) {
		owner = o;
	}
	
	
	public void keyPressed(KeyEvent arg0) {
		owner.getCurLevel().processKey(arg0, 1);
	}

	
	public void keyReleased(KeyEvent arg0) {
		owner.getCurLevel().processKey(arg0, 2);
	}

	
	public void keyTyped(KeyEvent arg0) {
	}

}
